/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package xmarti.vacaxm.action;

import java.util.List;
import xmarti.vacaxm.beans.connect.Destination;
import xmarti.vacaxm.beans.connect.Origin;
import xmarti.vacaxm.model.ModelPerson;



/**
 *
 * @author xmarti
 */
public class ImplPerson {
    private ModelPerson model ;
    public ImplPerson(){
        this.model= new ModelPerson(); 
    }
    public List <Origin> getOrigin(){
        return model.getListPersonActive(Origin.class);
    }
    public List <Destination> getDestinations(){
        return model.getListPersonActive(Destination.class);
    }
}
